package com.square.service.system.provider.action.user;

import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : 18.40
 * @date : 2020/8/9 14:52
 * @description :用户控制器
 */
@RestController
@RequestMapping("/user")
public class UserController {

    /**
     * 注册
     *
     * @param name
     * @return
     */
    @PostMapping("/register")
    public R getName(String name) {
        System.out.println("您的名字是" + name);
        return R.failed("您的名字是" + name);
    }
}
